FROM harbor.sh.deepin.com/mips64/minbase:uos
ENV TZ="PRC"
ENV CONFIG="    --user=nginx \
                --group=nginx \
                --prefix=/usr/local/nginx \
                --with-http_stub_status_module \
                --with-http_ssl_module"
RUN useradd nginx -s /sbin/nologin \
        && apt-get install make curl zlib1g-dev openssl libssl-dev libpcre3-dev gcc openssh-server nginx -y >/dev/null \
        && rm -f /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_rsa_key \
        && ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key \
        && ssh-keygen -q -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key \
        && sed -i "s/#UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config \
        && sed -i 's#GSSAPIAuthentication yes#GSSAPIAuthentication no#g' /etc/ssh/sshd_config  \
        && echo "root:xxxxx" | chpasswd \
        && apt-get install supervisor -y \
        && mkdir /run/sshd \
        && apt-get clean all 
COPY supervisord.conf /etc/supervisor/
EXPOSE 80  22
CMD ["/usr/bin/supervisord","-c","/etc/supervisor/supervisord.conf"]
